package com.dlc.yunguang.net.bean;

import android.os.Parcel;
import android.os.Parcelable;
import java.util.List;

/**
 * Created by John on 2017/7/24.
 */

public class BucaoCategoryBean {

    /**
     * code : 1
     * msg : 查询成功
     * data : [{"id":"1","company_id":"0","title":"毛巾","remark":""},{"id":"2","company_id":"0","title":"床单","remark":""},{"id":"3","company_id":"0","title":"被褥","remark":""}]
     */

    public int code;
    public String msg;
    public List<DataBean> data;

    public static class DataBean implements Parcelable {
        /**
         * id : 1
         * company_id : 0
         * title : 毛巾
         * remark :
         */

        public int id;
        public int company_id;
        public String title;
        public String remark;

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeInt(this.id);
            dest.writeInt(this.company_id);
            dest.writeString(this.title);
            dest.writeString(this.remark);
        }

        public DataBean() {
        }

        protected DataBean(Parcel in) {
            this.id = in.readInt();
            this.company_id = in.readInt();
            this.title = in.readString();
            this.remark = in.readString();
        }

        public static final Creator<DataBean> CREATOR = new Creator<DataBean>() {
            @Override
            public DataBean createFromParcel(Parcel source) {
                return new DataBean(source);
            }

            @Override
            public DataBean[] newArray(int size) {
                return new DataBean[size];
            }
        };
    }
}
